package eu.best.sercheng.model.entity;

import java.io.Serializable;

import javax.persistence.Embeddable;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

@Embeddable
public class RelationKeyPagePK implements Serializable {
	
	
	private static final long serialVersionUID = 4023624836467608613L;
	@ManyToOne
	private Keyword keyword;
	@ManyToOne
	private VisitedPage visitedPage;
	
	public RelationKeyPagePK(Keyword keyword, VisitedPage visitedPage) {
		super();
		this.keyword = keyword;
		this.visitedPage = visitedPage;
	}
	
	public RelationKeyPagePK() {
	}

	public Keyword getKeyword() {
		return keyword;
	}
	public void setKeyword(Keyword keyword) {
		this.keyword = keyword;
	}
	public VisitedPage getVisitedPage() {
		return visitedPage;
	}
	public void setVisitedPage(VisitedPage visitedPage) {
		this.visitedPage = visitedPage;
	}

	@Override
	public String toString() {
		return "RelationKeyPagePK [keyword=" + keyword + ", visitedPage="
				+ visitedPage + "]";
	}
	
}
